package com.itheima.springboot_06_mybatis_plus.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.springboot_06_mybatis_plus.domain.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper//这是干啥的
public interface BookDao extends BaseMapper<Book> { //用了BaseMapper<Book>就有了各种查询方式增删改查
    //用了mybatis_plus就不需要这样写了
    //@Select("select * from tb_book where id=#{id}") //给方法一个sql语句
    //public Book getById(Integer id);
}
